﻿using System;
using System.Globalization;
using System.Windows.Data;
using LayoutPlanning.Model;

namespace LayoutPlanning.Converters
{
    public class EnumToValueConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (!(value is Loudness))
                return null;
            var i = (int) value;
            return (int) value;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}